package edu.mit.media.fv.components
{
	import flash.display.DisplayObject;
	import flash.display.MovieClip;

	public class AQRadioButton extends MovieClip
	{
		var _radioMark:DisplayObject;
		private var _selected:Boolean = false;
		
		public function AQRadioButton()
		{
			super();
		}
		
		public function set selected(o:Boolean):void{
			this._selected = o;
			if(o){
				if(!this.contains(this.radioMark)){
					this.addChild(this.radioMark);
				}
			}else{
				if(this.contains(this.radioMark)){
					this.removeChild(this.radioMark);
				}
			}
		}
		public function get selected():Boolean{
			return this._selected;
		}
		
	}
}